<?php 
include './fun.php';
$data = $_POST;
$db1 = include './db1.php';
$data["password"]=md5($data["password"]);
foreach ($db1 as $k => $v) {

	if ($data["username"] == $v["username"] ){

		if ($data["password"]== $v["password"] ){
			session_start();
			$_SESSION['username']=$data["username"];
			mistake('登录成功','正在','./wicket.php',1);
			exit;
		}else{
			mistake("登录失败密码错误",'正在','./wicket.php',1);
			exit;
		}
	}  
			
}

mistake("登录失败账号或密码错误",'正在','./wicket.php',1);


?>